#include <stdio.h>
#include "oled.h"
#include "esp_log.h"
#include "driver/i2c.h"
#include "freertos/FreeRTOS.h"
#include "i2c.h"


void app_main(void)
{
    ESP_ERROR_CHECK( i2c_master_init() );
    //ESP_LOGI(TAG, "I2C initialized successfully");

    
    OLED_Init();


    OLED_ShowCHinese(0 * 18, 0, 0);
    OLED_ShowCHinese(1 * 18, 0, 1);
    OLED_ShowCHinese(2 * 18, 0, 2);

    
    OLED_ShowChar(0, 2, 'Q', 16);

    
    OLED_ShowString(0, 4, "Fairy tale", 16);

    
    
    OLED_ShowNum(0, 6, 1999, 6, 16);
}
